#include "s3e.h"
#include <memory.h>
//-----------------------------
void GameInit()
{}
//-----------------------------
void GameShutDown()
{}
//-----------------------------
bool GameUpdate()
{
		return true;
}

//-----------------------------
// The following function clears the screen and outputs the
// phrase "Hello world". It uses the s3eDebugPrint() function
// to print the phrase.
//-----------------------------
void GameRender()
{
	// Get pointer to the screen surface
	// (pixel depth is 2 bytes by default)
	uint16* screen = (uint16*)s3eSurfacePtr();
	int height = s3eSurfaceGetInt(S3E_SURFACE_HEIGHT);
	int width = s3eSurfaceGetInt(S3E_SURFACE_WIDTH);
	int pitch = s3eSurfaceGetInt(S3E_SURFACE_PITCH);

	// Clear screen to white
	for (int i=0; i< height; i++)
	{
		memset((char*)screen + pitch * i, 255, (width * 2));
	}

	//Print Hello World
	s3eDebugPrint(10, 20, "`x000000Hello World", 0);
}
